xen.git
20 years agonloopbacks default is now 8. So vifnum of greater than 7 requires
kaf24@firebug.cl.cam.ac.uk [Fri, 11 Nov 2005 09:46:36 +0000 (10:46 +0100)]
nloopbacks default is now 8. So vifnum of greater than 7 requires
an adjustment to nloopbacks. Warning comment updated.

Signed-off-by: Nivedita Singhvi (niv@us.ibm.com)
20 years agoAdd MOVSX instr support to VMX MMIO decoder.
kaf24@firebug.cl.cam.ac.uk [Fri, 11 Nov 2005 09:41:25 +0000 (10:41 +0100)]
Add MOVSX instr support to VMX MMIO decoder.

Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoRemove unnecessary ifdef in defn of xprintk. Install
kaf24@firebug.cl.cam.ac.uk [Fri, 11 Nov 2005 09:39:20 +0000 (10:39 +0100)]
Remove unnecessary ifdef in defn of xprintk. Install
xenguest.h.
Signed-off-by: Joseph Cihula <joseph.cihula@intel.com>
20 years agoFix Linux fault.c indentation.
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 18:43:56 +0000 (19:43 +0100)]
Fix Linux fault.c indentation.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix page-table dump on PAE with >4GB MFNs.
smh22@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 18:32:09 +0000 (19:32 +0100)]
Fix page-table dump on PAE with >4GB MFNs.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoMerge with http://xenbits.xensource.com/ext/xen-unstable-docs.hg
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 17:25:27 +0000 (18:25 +0100)]
Merge ... xenbits.xensource.com/ext/xen-unstable-docs.hg

20 years agoAdd "Securing Xen" adapted from Anthony Liguori's Wiki entry.
Robb Romans [Thu, 10 Nov 2005 16:43:24 +0000 (11:43 -0500)]
Add "Securing Xen" adapted from Anthony Liguori's Wiki entry.

20 years agoA few doc cleanups. Replace bitkeeper with mercurial.
Robb Romans [Thu, 10 Nov 2005 16:42:58 +0000 (11:42 -0500)]
A few doc cleanups. Replace bitkeeper with mercurial.

20 years agoThis patch use same expression as vif for vmx guest but has a distinguish "type=ioemu"
Xiaofeng Ling [Thu, 10 Nov 2005 16:07:13 +0000 (17:07 +0100)]
This patch use same expression as vif for vmx guest but has a distinguish "type=ioemu"
just like block device.
e.g. vif=['type=ioemu, mac=01:00:00:00:00:33, bridge=xenbr0']
type=ioemu to specify for vmx NIC device.
nics=4 can specify 4 vmx NIC now.
bridge is passed to device model now.
With this patch, the error
"Error: Device 0 (vif) could not be connected."
will not happen for creating vmx guest
currently, it happens on some linux distribution.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
20 years agoRemoved autogenerated file.
emellor@leeni.uk.xensource.com [Thu, 10 Nov 2005 15:59:51 +0000 (16:59 +0100)]
Removed autogenerated file.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix the log reopening by moving the code with all the races out of the signal
emellor@leeni.uk.xensource.com [Thu, 10 Nov 2005 15:20:27 +0000 (16:20 +0100)]
Fix the log reopening by moving the code with all the races out of the signal
handler and into the main loop.  The "self-pipe trick" is used to awaken the
select() call on SIGHUP.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoIndirect writes to phys_to_machine_mapping array through an inline
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 14:16:01 +0000 (15:16 +0100)]
Indirect writes to phys_to_machine_mapping array through an inline
function defined in page.h.

For self-migration, I need the ability to trap writes to the p2m map
during migration, because I keep a dictionary mapping mfns to pfns,
which I use for remapping the page tables once I am on the other side.

Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
20 years agoWhen creating exception/interrupt stack frames for a guest,
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 14:03:33 +0000 (15:03 +0100)]
When creating exception/interrupt stack frames for a guest,
set saved eflags.IF to !saved_upcall_mask. This allows the
guest to test interrupts-enabled in the interrupted context
in the same way as when running natively.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoThis patch fix some issue on masked interrupt:
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 11:12:00 +0000 (12:12 +0100)]
This patch fix some issue on masked interrupt:
1) check the mask setting on vmx_vioapic_do_irqs and
ioapic_get_highest_irq
2) Place mask info to a seperated data structure, and access it
atomically

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
20 years agoFix IPI handling before vcpu launched
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 11:11:39 +0000 (12:11 +0100)]
Fix IPI handling before vcpu launched

When sending IPI, the target vcpu may not be launched (like
INIT/Start-Up IPI), and the local apic is not initialized. Fix handling
on such case.

Also fix one bug in apic_round_robin function.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoFor vmx domain, because shadow_mode_reference is set later in
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 11:09:17 +0000 (12:09 +0100)]
For vmx domain, because shadow_mode_reference is set later in
vmx_final_setup_guest, so in arch_set_info_guest, the phys_basetab
is not do get_page, while when destroying, put_page is called,
so there is one page, the count=-1, and when a new domain allocate
this page, it will take it as cpumask 0xffffffff, this cause flash_tlb_mask
goes into dead loop.
This patch also eliminate the warning when creating vmx guest:
(XEN) Audit 1: type count went below zero mfn=1e03d t=f0000000 ot=3654b

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoAdd some minor defensive coding/error handling in xc_vmx_build.c like
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 11:06:50 +0000 (12:06 +0100)]
Add some minor defensive coding/error handling in xc_vmx_build.c like
C/S 7687

Signed-off-by: Haifeng Xue <haifeng.xue@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agomerge
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 11:05:22 +0000 (12:05 +0100)]
merge

20 years agoEnable xm console for vmx guest.
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 11:04:29 +0000 (12:04 +0100)]
Enable xm console for vmx guest.
When the serial port is redirect to pty, write the allocated
device to xenstore, then xm console can get it.
TODO:serial port by pty shall not block if there are no reading
on the other end

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
20 years agoFix some more bugs in pygrub including:
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 11:01:15 +0000 (12:01 +0100)]
Fix some more bugs in pygrub including:
a) a couple of variables were referenced wrong
b) fix using arrow keys in the menu to act correctly
c) and look for grub config properly for /boot partition

Signed-off-by: Jeremy Katz <katzj@redhat.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Thu, 10 Nov 2005 11:00:39 +0000 (12:00 +0100)]
Merged.

20 years agoVarious chmod a+x.
emellor@leeni.uk.xensource.com [Thu, 10 Nov 2005 11:00:09 +0000 (12:00 +0100)]
Various chmod a+x.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoAttached patch fixes a thinko in pygrub's setup.py
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 10:59:49 +0000 (11:59 +0100)]
Attached patch fixes a thinko in pygrub's setup.py

Signed-off-by: Jeremy Katz <katzj@redhat.com>
20 years agoEnable export of set_nmi_callback in suitably priv 64-bit doms.
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 10:58:39 +0000 (11:58 +0100)]
Enable export of set_nmi_callback in suitably priv 64-bit doms.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoUpdates comments in network-bridge, removes dead code, minor typo fixes.
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 10:53:51 +0000 (11:53 +0100)]
Updates comments in network-bridge, removes dead code, minor typo fixes.
Signed-off-by: Nivedita Singhvi <niv@us.ibm.com>
20 years agoModularize runtest.sh and add a quick option.
danms@us.ibm.com [Thu, 10 Nov 2005 10:48:05 +0000 (11:48 +0100)]
Modularize runtest.sh and add a quick option.
I broke up runtest.sh into functions which makes it easier to alter its
behavior.  Now, we can easily re-submit a previously-run test report.

20 years agoMake the 04_restore test verify that two block devices and two nics are
danms@us.ibm.com [Thu, 10 Nov 2005 10:48:05 +0000 (11:48 +0100)]
Make the 04_restore test verify that two block devices and two nics are
restored to a working state and that the nics retain their configuration.

20 years agoRemove this accidental commit
danms@us.ibm.com [Thu, 10 Nov 2005 10:48:05 +0000 (11:48 +0100)]
Remove this accidental commit

20 years agoTweak the usage of mke2fs to be quiet, so that the XML reports
dan@guaranine.beaverton.ibm.com [Thu, 10 Nov 2005 10:47:38 +0000 (11:47 +0100)]
Tweak the usage of mke2fs to be quiet, so that the XML reports
contain less garbage

20 years agoAdd this file that wasn't in the tarball for the initial import
danms@us.ibm.com [Thu, 10 Nov 2005 10:47:34 +0000 (11:47 +0100)]
Add this file that wasn't in the tarball for the initial import

20 years agoRemove semicolons from Console.py. It's a habit.
danms@us.ibm.com [Thu, 10 Nov 2005 10:47:27 +0000 (11:47 +0100)]
Remove semicolons from Console.py.  It's a habit.

20 years agoMerged.
emellor@leeni.uk.xensource.com [Thu, 10 Nov 2005 10:43:26 +0000 (11:43 +0100)]
Merged.

20 years agoFix shadow bitmap sizing for logdirty mode.
smh22@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 18:18:47 +0000 (19:18 +0100)]
Fix shadow bitmap sizing for logdirty mode.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoMove linear faulting address (%cr2) out of the page fault
kaf24@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 16:23:46 +0000 (17:23 +0100)]
Move linear faulting address (%cr2) out of the page fault
stack frame and into vcpu_info_t (in shared_info_t). This
makes the guest #PF handler much more similar to native.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdded missing __init__.py.
emellor@leeni.uk.xensource.com [Wed, 9 Nov 2005 15:40:07 +0000 (16:40 +0100)]
Added missing __init__.py.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoCope with the ValueError exception that we get if you use Xend with the recent
emellor@leeni.uk.xensource.com [Wed, 9 Nov 2005 15:08:37 +0000 (16:08 +0100)]
Cope with the ValueError exception that we get if you use Xend with the recent
change to parsing memory configuration against a store with entries written
by an older Xend.

Added maxmem field to list of things to be read from the store on recreate.

20 years agoSupport recent change moving virtual IOAPIC model into Xen for
kaf24@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 13:53:12 +0000 (14:53 +0100)]
Support recent change moving virtual IOAPIC model into Xen for
ia64/VTI. Now ia64/vti will create links to arch/x86/dm/vmx_vioapic.c
and include/x86/vmx_vlapic.h.

Firstly, a small change to common virtual IOAPIC model to be used by
both sides. Also some compilation fix to tools is included in first
one. Secondly, there are ia64-specific changes to hook to common
IOAPIC model.

Based on this patch upon latest xen-ia64-unstable tip, we can see
multiple domains working again on XEN/IA64, including both domU and
VTI domain simultaneously in run-time.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
Signed-off-by Anthony Xu <Anthony.xu@intel.com>
Signed-off-by Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by Eddie Dong <eddie.dong@intel.com>

20 years agoAttached patch allows building of netfront and blkfront as modules
kaf24@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 13:42:15 +0000 (14:42 +0100)]
Attached patch allows building of netfront and blkfront as modules
(xennet.ko and xenblk.ko).

Signed-off-by: Jeremy Katz <katzj@redhat.com>
20 years agognttab_request_free_callback needs to be exported for building modular
kaf24@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 13:41:37 +0000 (14:41 +0100)]
gnttab_request_free_callback needs to be exported for building modular
blkfront

Signed-off-by: Jeremy Katz <katzj@redhat.com>
20 years agoRemove use of get_gendisk in blkfront gen_gendisk is no long exported
kaf24@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 13:41:14 +0000 (14:41 +0100)]
Remove use of get_gendisk in blkfront gen_gendisk is no long exported
by 2.6 kernel. Now blkfront can be built as a kernel module.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
Signed-off-by: Jeremy Katz <katzj@redhat.com>
20 years agoAllow xen_create_contiguous_region() to fail gracefully if it
kaf24@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 13:39:32 +0000 (14:39 +0100)]
Allow xen_create_contiguous_region() to fail gracefully if it
cannot allocate a contiguous multi-page extent of memory. This
should avoid unnecessary crashes in the xen-specific skbuff
cache constructor.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMore fixes for save/restore; use configured memory for generating sxp.
smh22@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 12:59:53 +0000 (13:59 +0100)]
More fixes for save/restore; use configured memory for generating sxp.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoThis patch prevents the xm-test console library from duplicating the
emellor@leeni.uk.xensource.com [Wed, 9 Nov 2005 11:39:38 +0000 (12:39 +0100)]
This patch prevents the xm-test console library from duplicating the
debugging output, when it's turned on.  This just makes it easier to
read.

Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years agoThis patch adds a new test that attempts to save and restore a domain
emellor@leeni.uk.xensource.com [Wed, 9 Nov 2005 11:39:05 +0000 (12:39 +0100)]
This patch adds a new test that attempts to save and restore a domain
with a block device attached.  It starts up a domain, mounts a block
device, writes data to it, saves, restores, and then verifies that the
block device can still be read.

Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years agoChmod a+x.
emellor@leeni.uk.xensource.com [Wed, 9 Nov 2005 11:38:46 +0000 (12:38 +0100)]
Chmod a+x.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix 64-bit build.
smh22@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 08:02:59 +0000 (09:02 +0100)]
Fix 64-bit build.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoEnable save/restore for PAE domains.
smh22@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 17:42:07 +0000 (18:42 +0100)]
Enable save/restore for PAE domains.

This includes quite a few cleanups / refactoring of the old code, some
of which is intended to prepare for 64-bit save/restore.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoUse '-' instead of '_' in xen version strings.
smh22@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 17:39:58 +0000 (18:39 +0100)]
Use '-' instead of '_' in xen version strings.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoFix alloc_skb() to ensure data is always physically contiguous.
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 15:48:42 +0000 (16:48 +0100)]
Fix alloc_skb() to ensure data is always physically contiguous.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoRationalise the kernel event-channel binding interfaces. The
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 14:58:31 +0000 (15:58 +0100)]
Rationalise the kernel event-channel binding interfaces. The
new interfaces are simpler and should be implementable by any
architecture.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoIncrease the static constant default number of loopback interfaces, nloopbacks,
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 14:15:02 +0000 (15:15 +0100)]
Increase the static constant default number of loopback interfaces, nloopbacks,
to 8.  These interfaces are very cheap, so there's no problem having a few
spare.  Anyone with more than 8 NICs can still use the kernel command line or
the module parameter line to pass a larger limit to this module.

Detail the kernel command line parameter for nloopbacks in the diagnostic in
network-bridge.

Closes bug #381.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 13:56:14 +0000 (14:56 +0100)]
Merged.

20 years agoFix two leaks in the pyxc interface. The dictionaries are being added
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 13:53:27 +0000 (14:53 +0100)]
Fix two leaks in the pyxc interface. The dictionaries are being added
to lists, and an extra ref was being left behind.

Signed-off-by: Sean Perry <sean@xensource.com>
Signed-off-by: Robert Read <robert@xensource.com>
20 years agomerge
Michael.Fetterman@cl.cam.ac.uk [Tue, 8 Nov 2005 13:41:25 +0000 (14:41 +0100)]
merge

20 years agomerge
Michael.Fetterman@cl.cam.ac.uk [Tue, 8 Nov 2005 12:30:05 +0000 (13:30 +0100)]
merge

20 years agoCleanup various shadow mode asserts.
Michael.Fetterman@cl.cam.ac.uk [Tue, 8 Nov 2005 12:26:50 +0000 (13:26 +0100)]
Cleanup various shadow mode asserts.

Separate out the ability for domains to be able to write to their
pagetables (ala "writable page tables", which uses write-protected PTEs
to address the page tables: this is shadow_mode_write_all()) from the
right of a domain to create a PTE with write permissions that points
at a page table (this is shadow_mode_wr_pt_pte())...

Minor cleanup of SHADOW_DEBUG (at least make it compilable) in shadow.c.

20 years agoMerged.
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 11:31:43 +0000 (12:31 +0100)]
Merged.

20 years agoAdded file missed on commit of earlier patch by Dan Smith.
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 11:30:38 +0000 (12:30 +0100)]
Added file missed on commit of earlier patch by Dan Smith.

20 years agoThis patch removes all of the auto-generated files that were checked
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 11:28:19 +0000 (12:28 +0100)]
This patch removes all of the auto-generated files that were checked
in with xm-test in changeset 7634.  It also adds an "autogen" script
that re-creates these files.

The auto-generated files really don't need to be in the tree, as they
should be generated by the user on the machine where they plan to run
xm-test.

Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years agoBug fix in error handling in get_page_from_l4e()
mafetter@aosda.research.intel-research.net [Tue, 8 Nov 2005 11:26:48 +0000 (12:26 +0100)]
Bug fix in error handling in get_page_from_l4e()

20 years agoRemove unused and unnecessary gnttab ioctl.
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 11:25:09 +0000 (12:25 +0100)]
Remove unused and unnecessary gnttab ioctl.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoUpdate tools/examples docs.
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 11:17:53 +0000 (12:17 +0100)]
Update tools/examples docs.

Signed-off-by: Nivedita Singhvi <niv@us.ibm.com>
20 years agoAfter move randomMac to netif in 7637, we need to this for vmx guest.
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 11:16:37 +0000 (12:16 +0100)]
After move randomMac to netif in 7637, we need to this for vmx guest.
otherwise, if no mac address configured, vmx guest can not be created.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
20 years agoRemove the execute bit from shell snipplets (the -common files not
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 11:14:33 +0000 (12:14 +0100)]
Remove the execute bit from shell snipplets (the -common files not
starting with #!) found in the example directory under tools. It
further changes the installation path of the udev rules to comply with
what debian does: It places the rules file in /etc/udev/ und creates a
symlink to it in /etc/udev/rules.d.

Signed-off-by: Tobias Hunger <tobias@aquzul.com>
20 years agoFix the clean target of the tools/xenstore Makefile to
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 11:06:18 +0000 (12:06 +0100)]
Fix the clean target of the tools/xenstore Makefile to
remove all files created. Currently leaves some of its
files behind.

Signed-off-by: Tobias Hunger <tobias@aquzul.com>
20 years agoThis patch increments the version number of xm-test so that we can
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 11:02:10 +0000 (12:02 +0100)]
This patch increments the version number of xm-test so that we can
distinguish reports from the 0.4.0 tarball and in-tree versions.

Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years agoThis patch adds a URL to the reporting site, as well as a note about
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 11:01:09 +0000 (12:01 +0100)]
This patch adds a URL to the reporting site, as well as a note about
running with lots of free memory to the README.

Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years ago1. Set the UID and EUID of the process when trying to switch to a
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 11:00:23 +0000 (12:00 +0100)]
1. Set the UID and EUID of the process when trying to switch to a
   non-root user.
2. Better handle the debug-printing inside the console

Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years ago1. Unmark the 07 and 08 tests of block_attach as XFAIL
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 10:56:55 +0000 (11:56 +0100)]
1. Unmark the 07 and 08 tests of block_attach as XFAIL
2. Change the MEM_PER_DOM amount in 11_create_concurrent to 24MB, so
   that the test will run on x86_64.
3. Increase the number of DomUs created in 12_create_concurrent to 5
4. Fix a logic error in 01_unpause
5. Add a test 06_help that checks all xm commands with 0-10 arguments
   to make sure none of them traceback with varying argument counts.

Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years agomerge
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 10:44:48 +0000 (11:44 +0100)]
merge

20 years agoFixed domain refcounting bug (found by inspection)
mafetter@seana.research.intel-research.net [Tue, 8 Nov 2005 10:38:32 +0000 (11:38 +0100)]
Fixed domain refcounting bug (found by inspection)

20 years agoFixed a bug in the audit code.
mafetter@seana.research.intel-research.net [Tue, 8 Nov 2005 10:36:55 +0000 (11:36 +0100)]
Fixed a bug in the audit code.
We don't hold a type refcount to the user's ptbase frame in
shadow refcounting mode.

20 years agoFixed domain refcounting bug (found by inspection)
unknown@aosda.research.intel-research.net [Tue, 8 Nov 2005 10:36:37 +0000 (11:36 +0100)]
Fixed domain refcounting bug (found by inspection)

20 years agoRemove unused parameter.
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 10:35:25 +0000 (11:35 +0100)]
Remove unused parameter.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix vncviewer spawning so it actually works.
mafetter@seana.research.intel-research.net [Tue, 8 Nov 2005 10:31:16 +0000 (11:31 +0100)]
Fix vncviewer spawning so it actually works.
How did this ever work for other people?

20 years agoAdded some minor defensive coding/error handling in xc_linux_build.c
mafetter@seana.research.intel-research.net [Tue, 8 Nov 2005 10:29:07 +0000 (11:29 +0100)]
Added some minor defensive coding/error handling in xc_linux_build.c

20 years agoMerge xen-unstable into xen-ia64-unstable again (to get ioapic changes)
djm@kirby.fc.hp.com [Tue, 8 Nov 2005 02:40:31 +0000 (20:40 -0600)]
Merge xen-unstable into xen-ia64-unstable again (to get ioapic changes)

20 years agoMerged.
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 02:35:25 +0000 (03:35 +0100)]
Merged.

20 years agoPush the process of waiting for devices to come up right out of DevController,
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 02:34:23 +0000 (03:34 +0100)]
Push the process of waiting for devices to come up right out of DevController,
and drive this process from xm create.  Architecturally, this separates the
process of domain creation from the process of waiting for devices, allowing
tools to choose when to perform that wait (if at all).  This places the waiting
in the same category as the unpause after domain creation, architecturally.

The main advantage to this approach is that it takes waiting for devices out
of the scope of XendDomain's domains_lock.  When restarting a domain, the
watch would fire for @releaseDomain while we were waiting for new domains to
come up.  This would deadlock the watch thread, as no more new watches could
be delivered.  Closes bug #387.

In the longer term, we expect to be able to wait for devices to come up
completely, not simply to wait for the hotplug scripts to run, and so it is
necessary then to move the waiting procedure right out of the server, so that
it can be performed after the domain unpause.  Without unpausing the domain,
the frontends will not come up, and so we cannot detect successful device
completion.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoRearrange restart logic so that a failure to restart a domain does not cause
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 02:07:57 +0000 (03:07 +0100)]
Rearrange restart logic so that a failure to restart a domain does not cause
cascading secondary errors.  Fixes bug #384.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMark plenty of variables as unused, and remove an unused import.
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 01:51:34 +0000 (02:51 +0100)]
Mark plenty of variables as unused, and remove an unused import.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoRemove unused XENSTORED_XYZ constants.
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 00:26:16 +0000 (01:26 +0100)]
Remove unused XENSTORED_XYZ constants.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoEnable ar.unat handling for fast paths (by Anthony Xu)
djm@kirby.fc.hp.com [Mon, 7 Nov 2005 22:53:25 +0000 (16:53 -0600)]
Enable ar.unat handling for fast paths (by Anthony Xu)

20 years agoRename parameter to avoid shadowing builtin.
emellor@leeni.uk.xensource.com [Mon, 7 Nov 2005 20:22:02 +0000 (21:22 +0100)]
Rename parameter to avoid shadowing builtin.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMinor Makefile cleanup in tools/libxc/Makefile
unknown@aosda.research.intel-research.net [Mon, 7 Nov 2005 17:35:55 +0000 (18:35 +0100)]
Minor Makefile cleanup in tools/libxc/Makefile

20 years agoMissed ia64 changes to one drivers/xen file
djm@kirby.fc.hp.com [Mon, 7 Nov 2005 17:25:59 +0000 (11:25 -0600)]
Missed ia64 changes to one drivers/xen file

20 years agoMake xen0's default config match itself after a "make oldconfig"
unknown@aosda.research.intel-research.net [Mon, 7 Nov 2005 17:25:09 +0000 (18:25 +0100)]
Make xen0's default config match itself after a "make oldconfig"

20 years agoFix pagetable pinning logic for xen/i386 kernels. The pin
kaf24@firebug.cl.cam.ac.uk [Mon, 7 Nov 2005 17:14:45 +0000 (18:14 +0100)]
Fix pagetable pinning logic for xen/i386 kernels. The pin
flag is now associated with the pgd rather than the mm -- this
avoids a race where a pgd is allocated from the pgd_cache but,
before it gets associated with an mm, the kernel suspends itself.
At this point the kernel mappings will not get rewritten when the
kernel is resumed, and the system will fail.

A further advantage is that the code is slightly simpler and less
invasive (no changes to mm_context for example).

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMerge latest xen-unstable into xen-ia64-unstable
djm@kirby.fc.hp.com [Mon, 7 Nov 2005 17:13:38 +0000 (11:13 -0600)]
Merge latest xen-unstable into xen-ia64-unstable

20 years agoMinor updates to .hgignore
unknown@aosda.research.intel-research.net [Mon, 7 Nov 2005 16:54:55 +0000 (17:54 +0100)]
Minor updates to .hgignore
Added "tools/.*/TAGS" entry.
Sorted all entries.

20 years agoFast tlb miss reflection (mostly working, missing robustness, default off)
djm@kirby.fc.hp.com [Mon, 7 Nov 2005 16:40:42 +0000 (10:40 -0600)]
Fast tlb miss reflection (mostly working, missing robustness, default off)
Signed-off by: Dan Magenheimer <dan.magenheimer@hp.com>
I've been maintaining this out-of-tree partially finished for some time
so am now checking it in but default off.  The current version needs
some additional error checking and only works (fast) for domain0, but
it makes a significant performance differenece.

20 years agoThis patch remove the obsolete ioapic code on qemu device model side.
kaf24@firebug.cl.cam.ac.uk [Mon, 7 Nov 2005 15:37:58 +0000 (16:37 +0100)]
This patch remove the obsolete ioapic code on qemu device model side.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
20 years agoThis patch add virtual IOAPIC support for VMX guest.
kaf24@firebug.cl.cam.ac.uk [Mon, 7 Nov 2005 15:36:27 +0000 (16:36 +0100)]
This patch add virtual IOAPIC support for VMX guest.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
20 years agoThis patch change the vmx mmio handler to static.
kaf24@firebug.cl.cam.ac.uk [Mon, 7 Nov 2005 15:35:46 +0000 (16:35 +0100)]
This patch change the vmx mmio handler to static.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Mon, 7 Nov 2005 14:06:27 +0000 (15:06 +0100)]
Merged.

20 years agoAdded description of the behaviour of rename-restart.
emellor@leeni.uk.xensource.com [Mon, 7 Nov 2005 14:06:00 +0000 (15:06 +0100)]
Added description of the behaviour of rename-restart.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFixed syntax error in iopif patch.
jbulpin@wicket.uk.xensource.com [Mon, 7 Nov 2005 12:04:27 +0000 (13:04 +0100)]
Fixed syntax error in iopif patch.

Signed-off-by: James Bulpin <james@xensource.com>
20 years agomerge
kaf24@firebug.cl.cam.ac.uk [Mon, 7 Nov 2005 11:53:38 +0000 (12:53 +0100)]
merge

20 years agofast_flush_area() should index the unmap request array using
kaf24@firebug.cl.cam.ac.uk [Mon, 7 Nov 2005 11:52:49 +0000 (12:52 +0100)]
fast_flush_area() should index the unmap request array using
invcount, not i. Also, fix initialisation of pending_grant_handles:
it was happening too late, and the use of memset() was bogus.

Signed-off-by: Harry Butterworth <butterwo@uk.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMove the randomMAC method from xm.create into server.netif. This way, it can
emellor@leeni.uk.xensource.com [Mon, 7 Nov 2005 11:36:53 +0000 (12:36 +0100)]
Move the randomMAC method from xm.create into server.netif.  This way, it can
be shared with other command line tools, and the xm network-attach command.

Signed-off-by: Ewan Mellor <ewan@xensource.com>